<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作业2</title>
</head>
<body>
<pre>
    <h1> str = input("请输入两个单词并用逗号隔开:\n")
         if str.find(',')!=-1:
             strs = str.split(',')
             str1_list = list(strs[0]).sort()
             str2_list = list(strs[1]).sort()
             print(str1_list==str2_list)
    else:
         print('输入错误')
    </h1>
</pre>
</body>
</html>